.class Lcom/htc/android/footprints/activity/FootprintCamera$8;
.super Ljava/lang/Object;
.source "FootprintCamera.java"

# interfaces
.implements Landroid/content/ServiceConnection;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/activity/FootprintCamera;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/FootprintCamera;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/FootprintCamera;)V
    .locals 0
    .parameter

    .prologue
    .line 897
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$8;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
    .locals 3
    .parameter "componentname"
    .parameter "ibinder"

    .prologue
    const-string v2, "FootprintCamera"

    .line 867
    const-string v1, "FootprintCamera"

    const-string v1, "onServiceConnected. mBindState = SERVICE_BINDED"

    invoke-static {v2, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 868
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$8;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-static {p2}, Lcom/htc/android/footprints/ILocationAgentService$Stub;->asInterface(Landroid/os/IBinder;)Lcom/htc/android/footprints/ILocationAgentService;

    move-result-object v2

    iput-object v2, v1, Lcom/htc/android/footprints/activity/FootprintCamera;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    .line 869
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$8;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const/4 v2, 0x2

    #setter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mBindState:I
    invoke-static {v1, v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2402(Lcom/htc/android/footprints/activity/FootprintCamera;I)I

    .line 872
    :try_start_0
    const-string v1, "FootprintCamera"

    const-string v2, "mService.resume() at onServiceConnected"

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 873
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$8;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/FootprintCamera;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v1}, Lcom/htc/android/footprints/ILocationAgentService;->resume()V

    .line 875
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$8;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/FootprintCamera;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$8;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mCallback:Lcom/htc/android/footprints/ILocationAgentCallback;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2500(Lcom/htc/android/footprints/activity/FootprintCamera;)Lcom/htc/android/footprints/ILocationAgentCallback;

    move-result-object v2

    invoke-interface {v1, v2}, Lcom/htc/android/footprints/ILocationAgentService;->registerCallback(Lcom/htc/android/footprints/ILocationAgentCallback;)V

    .line 877
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$8;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->isRecaputre:I
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$400(Lcom/htc/android/footprints/activity/FootprintCamera;)I

    move-result v1

    if-nez v1, :cond_1

    .line 879
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$8;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->gpsEnabled:Z
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2600(Lcom/htc/android/footprints/activity/FootprintCamera;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 880
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$8;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/FootprintCamera;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v1}, Lcom/htc/android/footprints/ILocationAgentService;->enableMyLocation()V

    .line 895
    :cond_0
    :goto_0
    return-void

    .line 885
    :cond_1
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$8;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/FootprintCamera;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v1}, Lcom/htc/android/footprints/ILocationAgentService;->isTracking()Z

    move-result v1

    if-nez v1, :cond_0

    .line 886
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$8;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mIndicator:Landroid/widget/ImageView;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2700(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/widget/ImageView;

    move-result-object v1

    const/4 v2, 0x4

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setVisibility(I)V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 892
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 893
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0
.end method

.method public onServiceDisconnected(Landroid/content/ComponentName;)V
    .locals 2
    .parameter "componentname"

    .prologue
    .line 898
    const-string v0, "FootprintCamera"

    const-string v1, "onServiceDisconnected. mBindState = SERVICE_UNBIND"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 899
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintCamera$8;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const/4 v1, 0x0

    #setter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mBindState:I
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2402(Lcom/htc/android/footprints/activity/FootprintCamera;I)I

    .line 907
    return-void
.end method
